package com.mz.mattress.client.service.impl;

import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.MattressMessageRecord;
import com.mz.mattress.client.mapper.MattressMessageRecordMapper;
import com.mz.mattress.client.service.MattressMessageRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class MattressMessageRecordServiceImpl implements MattressMessageRecordService {

    @Autowired
    private MattressMessageRecordMapper mattressMessageRecordMapper;

    @Override
    public Result<List<MattressMessageRecord>> list() {

        List<MattressMessageRecord> list = mattressMessageRecordMapper.list();

        return Result.ok(list);
    }
}
